package com.qyhl.party.party.test.compare;

import com.qyhl.webtv.commonlib.entity.party.PartyCompareBean;
import com.qyhl.webtv.commonlib.entity.party.PartyLoginBean;

public class PartyComparePresenter implements PartyCompareContract.PartyComparePresenter {
    private PartyCompareContract.PartyCompareView mView;
    private PartyCompareModel mModel;

    public PartyComparePresenter(PartyCompareContract.PartyCompareView mView) {
        this.mView = mView;
        this.mModel = new PartyCompareModel(this);
    }

    @Override
    public void startChallenge(String token) {
        mModel.startChallenge(token);
    }

    @Override
    public void submit(String token, int pkRecordId, int questionId, String answer, int seconds) {
        mModel.submit(token, pkRecordId, questionId, answer, seconds);
    }

    @Override
    public void submitTimeOut(String token, int pkRecordId) {
        mModel.submitTimeOut(token, pkRecordId);
    }

    @Override
    public void isLogin() {
        mModel.isLogin();
    }

    @Override
    public void startSuccess(PartyCompareBean bean) {
        mView.startSuccess(bean);
    }

    @Override
    public void startError(String msg) {
        mView.startError(msg);
    }

    @Override
    public void submitSuccess(PartyCompareBean bean) {
        mView.submitSuccess(bean);
    }

    @Override
    public void submitError(String msg) {
        mView.submitError(msg);
    }

    @Override
    public void timeOutSuccess(PartyCompareBean bean) {
        mView.timeOutSuccess(bean);
    }

    @Override
    public void timeOutError(String msg) {
        mView.timeOutError(msg);
    }

    @Override
    public void LoginSuccess(PartyLoginBean bean) {
        mView.LoginSuccess(bean);
    }

    @Override
    public void LoginError(String msg) {
        mView.LoginError(msg);
    }
}
